package cbs.demo;

import java.io.IOException;

/**
 * Hello world!
 */
public class App {
    public static void main(String[] args) {
        /*try (var inputStream = Thread.currentThread().getContextClassLoader().getResourceAsStream("something")) {
            String result = new BufferedReader(new InputStreamReader(inputStream))
                    .lines().collect(Collectors.joining(System.lineSeparator()));
            System.out.println(result);
        } catch (IOException e) {
            e.printStackTrace();
        }*/
        try (var inputStream = Thread.currentThread().getContextClassLoader().getResourceAsStream("something")) {
            var bs = new byte[inputStream.available()];
            inputStream.read(bs, 0, bs.length);
            System.out.println(new String(bs));
        } catch (IOException e) {
            e.printStackTrace();
        }

    }
}
